package com.cool.java11.functionsable;

/**
 * 函数式
 * <p>
 * 消灭If..else分支
 *
 * @Author ifredomvip@gmail.com
 * @Date 2022/9/20 14:49
 * @Version 1.0.0
 * @Description
 **/
public class FunctionalContext {
    public static void main(String[] args) {
        DefineSwitch.changeHandle(true)
            .changeBranchComplete(
                    () -> System.out.println("切换成功"),
                    () -> System.out.println("切换失败")
            );
    }
}
